package com.ruoyi.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.mapper.LiveTrackMapper;
import com.ruoyi.project.system.domain.LiveTrack;
import com.ruoyi.project.system.service.ILiveTrackService;

/**
 * 玩家阵营Service业务层处理
 * 
 * @author david
 * @date 2025-06-11
 */
@Service
public class LiveTrackServiceImpl implements ILiveTrackService 
{
    @Autowired
    private LiveTrackMapper liveTrackMapper;

    /**
     * 查询玩家阵营
     * 
     * @param liveRoomId 玩家阵营主键
     * @return 玩家阵营
     */
    @Override
    public LiveTrack selectLiveTrackByLiveRoomId(String liveRoomId)
    {
        return liveTrackMapper.selectLiveTrackByLiveRoomId(liveRoomId);
    }

    /**
     * 查询玩家阵营列表
     * 
     * @param liveTrack 玩家阵营
     * @return 玩家阵营
     */
    @Override
    public List<LiveTrack> selectLiveTrackList(LiveTrack liveTrack)
    {
        return liveTrackMapper.selectLiveTrackList(liveTrack);
    }

    /**
     * 新增玩家阵营
     * 
     * @param liveTrack 玩家阵营
     * @return 结果
     */
    @Override
    public int insertLiveTrack(LiveTrack liveTrack)
    {
        return liveTrackMapper.insertLiveTrack(liveTrack);
    }

    /**
     * 修改玩家阵营
     * 
     * @param liveTrack 玩家阵营
     * @return 结果
     */
    @Override
    public int updateLiveTrack(LiveTrack liveTrack)
    {
        return liveTrackMapper.updateLiveTrack(liveTrack);
    }

    /**
     * 批量删除玩家阵营
     * 
     * @param liveRoomIds 需要删除的玩家阵营主键
     * @return 结果
     */
    @Override
    public int deleteLiveTrackByLiveRoomIds(String[] liveRoomIds)
    {
        return liveTrackMapper.deleteLiveTrackByLiveRoomIds(liveRoomIds);
    }

    /**
     * 删除玩家阵营信息
     * 
     * @param liveRoomId 玩家阵营主键
     * @return 结果
     */
    @Override
    public int deleteLiveTrackByLiveRoomId(String liveRoomId)
    {
        return liveTrackMapper.deleteLiveTrackByLiveRoomId(liveRoomId);
    }
}
